package com.yicong.ants.bean.me;



/**
 * 收款信息
 *
 * @author cchao
 * @since 2019-12-26
 */

public class UserIncome {
    String channel;
    String channel_text;
    String account;
    String name;

    public UserIncome() {
    }

    public String getChannel_text() {
        switch (channel) {
            case "1":
                return "支付宝";
            case "2":
                return "微信";
        }
        return "只支持支付宝和微信";
    }

    public String getChannel() {
        return this.channel;
    }

    public String getAccount() {
        return this.account;
    }

    public String getName() {
        return this.name;
    }

    public UserIncome setChannel(String channel) {
        this.channel = channel;
        return this;
    }

    public UserIncome setChannel_text(String channel_text) {
        this.channel_text = channel_text;
        return this;
    }

    public UserIncome setAccount(String account) {
        this.account = account;
        return this;
    }

    public UserIncome setName(String name) {
        this.name = name;
        return this;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof UserIncome)) return false;
        final UserIncome other = (UserIncome) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$channel = this.getChannel();
        final Object other$channel = other.getChannel();
        if (this$channel == null ? other$channel != null : !this$channel.equals(other$channel))
            return false;
        final Object this$channel_text = this.getChannel_text();
        final Object other$channel_text = other.getChannel_text();
        if (this$channel_text == null ? other$channel_text != null : !this$channel_text.equals(other$channel_text))
            return false;
        final Object this$account = this.getAccount();
        final Object other$account = other.getAccount();
        if (this$account == null ? other$account != null : !this$account.equals(other$account))
            return false;
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof UserIncome;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $channel = this.getChannel();
        result = result * PRIME + ($channel == null ? 43 : $channel.hashCode());
        final Object $channel_text = this.getChannel_text();
        result = result * PRIME + ($channel_text == null ? 43 : $channel_text.hashCode());
        final Object $account = this.getAccount();
        result = result * PRIME + ($account == null ? 43 : $account.hashCode());
        final Object $name = this.getName();
        result = result * PRIME + ($name == null ? 43 : $name.hashCode());
        return result;
    }

    public String toString() {
        return "UserIncome(channel=" + this.getChannel() + ", channel_text=" + this.getChannel_text() + ", account=" + this.getAccount() + ", name=" + this.getName() + ")";
    }
}
